home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Communications / General / ZTerm Speed Patch / ZTerm high speed patch < prev   
Text File  |  1993-01-30  |  3KB  |  38 lines

  1.   This patch is for VERSION 0.9 ONLY.  This is not an official patch, just something I hacked out to speed up ZTerm, DO NOT DISTRIBUTE A PATCHED VERSION.  I am not responsible for any damages that occur from following or attempting to follow these directions.  Follow these directions AT YOUR OWN RISK.
  2.  
  3. A knowledge of ResEdit is highly reccomended.  2400 baud users may not notice much of a speed increase.  Read the directions completely before attempting to follow them.
  4.  
  5. Easy instructions:
  6. 1.  Make a copy of ZTerm
  7. 2.  Use ResEdit to open your copy of ZTerm.
  8. 3.  Use ResEdit to open up the included palette file (so it and your copy of ZTerm are both open in ResEdit).
  9. 4.  Select the pltt resource type (there should be a 2-pixel wide square that says "pltt" under it).
  10. 5.  Select copy from the edit menu (command-c).
  11. 6.  Click on the ZTerm window (the one in ResEdit).
  12. 7.  Select paste from the edi menu (command-v).
  13. 8.  Double click on the "CODE" resource type (you may have to scroll down in ResEdit).
  14. 9.  Select resource id# 8 (should say "8    2276")
  15. 10.  Choose "Open Using Hex Editor" in the "Resource" menu.
  16. 11.  Choose "Find Offset" from the search menu (command-h).
  17. 12.  Type 69E, into the "Find Offset" dialog box, and click on the "Find" button (or just press return).
  18. 13.  You should see a 2F highlighted, which should be the first hex code in "2F2E FEA0 A9BD".
  19. 14.  Select the "2F2E FEA0 A9BD".
  20. 15.  Replace that with 2F2E FEA0 AA46 (just type 2F2EFEA0AA46).
  21. 16.  Save the copy of ZTerm (command-s).
  22. 17.  Quit ResEdit
  23. 18.  Set your monitor to 16 colors (via the monitor control panel)
  24. 19.  Open up ZTerm.
  25.  
  26. Fast Instructions:
  27.     Copy the palette in the included resource file into ZTerm.  Open up code resource id 8, and use the find offset feature (command-h) to find offset $69E.  Change 2F2E FEA0 A9BD to 2F2E FEA0 AA46.  Save the changes, quit ResEdit, set your monitor to 16 colors and enjoy the extra speed.
  28.  
  29.   You can use ResEdit to edit pltt #128 if you want to change the displayed colors.
  30.   To get the same speed with ZTerm every time, you will need to have your monitor set to 16 colors while using it.
  31.  
  32. How it works:
  33.    Changing the code resource makes ZTerm call _GetNewCWindow, instead of _GetNewWindow.  When a program calls _GetNewCWindow, GetNewCWindow looks for a resource of type pltt with the same id as the window.  It finds the palette copied into ZTerm, and loads it.  When ZTerm tries to change the colors, the palette manager uses the closest available colors, which should be the ones in its palette (since there are only 16 colors).   When ZTerm is normally used in 16 color mode, the colors are very hard to read, because it has to use the available colors.  It takes half as long to draw a character on the screen in 4-bit mode (16 colors) then it does to draw one in 8-bit (256 colors) mode.  Running in 16 colors should make ZTerm display the screen twice as fast (if your modem is fast enough).
  34.  
  35. Send any comments to me at one of the following e-mail addresses:
  36. America Online:  JonSnell
  37. Internet:  JonSnell@aol.com
  38. Prodigy:  FTCB36D